package org.gitee.weapp.domain.vo;

import lombok.Data;
import org.gitee.weapp.domain.entity.Goods;

@Data
public class GoodsVo extends Goods {

    public GoodsVo(Goods goods) {
        this.setName(goods.getName());
        this.setId(goods.getId());
        this.setDesc(goods.getDesc());
        this.setPrice(goods.getPrice());
        this.setCategoryId(goods.getCategoryId());
    }

    private String picUrl;
}
